package com.example.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

@Data
@TableName("msslyy_order_master")
public class MsslyyOrderMaster extends Model<MsslyyOrderMaster> {
    /**
      * 主键
      */
    @ApiModelProperty(value = "ID")
    @TableId(value = "order_master_id", type = IdType.AUTO)
    private Long id;


    /**
      * 订单编号 
      */
    @ApiModelProperty(value = "订单编号")
    private String orderMasterNumber;

    /**
      * 下单人ID 
      */
    @ApiModelProperty(value = "下单人ID")
    private Long userId;

    /**
      * 收货人姓名 
      */
    @ApiModelProperty(value = "收货人姓名")
    private String addressMessageName;

    /**
      * 电话 
      */
    @ApiModelProperty(value = "电话")
    private String addressMessagePhone;

    /**
      * 省 
      */
    @ApiModelProperty(value = "省")
    private String addressMessageProvince;

    /**
      * 市 
      */
    @ApiModelProperty(value = "市")
    private String addressMessageCity;

    /**
      * 区 
      */
    @ApiModelProperty(value = "区")
    private String addressMessageDistrict;

    /**
      * 详细地址 
      */
    @ApiModelProperty(value = "详细地址")
    private String addressMessageAddress;

    /**
      * 订单金额 
      */
    @ApiModelProperty(value = "订单金额")
    private BigDecimal orderMasterMoney;

    /**
      * 支付方式 
      */
    @ApiModelProperty(value = "支付方式")
    private Integer orderMasterPaymoneyMethod;

    /**
      * 订单状态 
      */
    @ApiModelProperty(value = "订单状态")
    private Integer orderMasterState;

    /**
      * 收货时间 
      */
    @ApiModelProperty(value = "收货时间")
    private Date orderMasterReceiveTime;

    /**
      * 状态 
      */
    @ApiModelProperty(value = "状态")
    private Integer status;

    /**
      * 逻辑删除 
      */
    @ApiModelProperty(value = "逻辑删除")
    private Integer deleted;

    /**
      * 乐观锁 
      */
    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer version;

    /**
      * 创建时间 
      */
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
      * 修改时间 
      */
    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @TableField(exist = false)
    private List<MsslyyOrderDetail> orderDetails;

}